home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000133_news@watsun.cc.columbia.edu _Mon Jan 18 12:15:49 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA06497
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 18 Jan 1999 12:15:48 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA10113
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 18 Jan 1999 11:40:29 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: do11@calva.net (Dominique Ottello)
  10. Subject: not the same string with echo as with write file
  11. Date: Mon, 18 Jan 1999 16:43:37 GMT
  12. Organization: PCatHome&Me
  13. Message-ID: <36a35d8c.97279@news.calvacom.fr>
  14. To: kermit.misc@mailrelay2.cc.columbia.edu
  15.  
  16. Hello from France,
  17.  
  18. I apologize for my wrong English, I hope you'll understand what I want.
  19.  
  20. MS-Kermit 3.15 under MS-DOS 6.2
  21.  
  22. With the under take file I want to have the same output string on screen
  23. and in a file :
  24. ; ------------ Beginning of take file ----------------
  25. def Avion A320
  26. def Ename AKA10AAJ
  27. def Filelog Essai.log
  28. def Log_S Fichier
  29. def SN ECDD3022
  30. def \%h T1
  31. def \%n 005
  32. def \%p 1459M55
  33. ;
  34. def print_PC open append \m(FileLog),-
  35.  write file {\v(Time) \%1\13\10},close write-file
  36. ;
  37. ; Warning : the next two lines are only one line (Word Wrap)
  38. ass Affiche copy C:\\KERMIT\\FICHIERS\\\m(Ename).\%h
  39. C:\\\m(Avion)\\\%p\\\m(SN)\\\v(ndate).\%n
  40. ;
  41. echo {\m(Affiche)}
  42. print_PC {\m(Affiche)}
  43. ; ------------ End of take file ----------------
  44.  
  45.  
  46. The echo line does exactly what I want :
  47.    Warning : the next two lines are only one line (Word Wrap)
  48. 14:55:37 copy C:\KERMIT\FICHIERS\AKA10AAJ.T1
  49. C:\A320\1459M55\ECDD3022\19990118.005
  50.  
  51. Unfortunately, the content of the file ESSAI.LOG is not the same as the
  52. screen but :
  53.    Warning : the next two lines are only one line (Word Wrap)
  54. 14:55:37 copy C:\KERMIT\FICHIERS\AKA10AAJ.T1
  55. C:\A320�9M55\ECDD3022�90118.005
  56.  
  57. Despite the fact that the value seen by "show macro Affiche" is right, it
  58. seems that it is badly interpreted inside the macro "print_PC".
  59.  
  60. The "\\\%p" is not interpreted as one "\" plus the content of the macro \%p
  61. but as a character "\145" plus characters following i.e. "9M55". There is
  62. the same thing for "\\\v(ndate)" that is interpreted as character "\199"
  63. plus characters following i.e. "90118" in place of string "\19990118".
  64.  
  65. Is there a bug or a misunderstanding ?
  66.  
  67. Is there a way to bypass this problem ?
  68.  
  69. Thank you for your attention.
  70.  
  71. -- 
  72. == Dominique Ottello == do11@calva.net == Paris == France ==